'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    let res=[{
      id:1,
      name:'a'
    }]
    ctx.apiSuccess(res,'成功')
    // ctx.throw(500,'123')
  }
}

module.exports = HomeController;
